package com.hqyj.finance.server.users.financeusers.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hqyj.finance.server.users.financeusers.entity.Users;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import java.util.List;


public interface UsersMapper extends BaseMapper<Users> {

    @Select("select * from users")
    public List<Users> queryAllUsers();

    @Select("select * from users where uid=#{uid}")
    public Users queryUserByUidWithoutDeleteFlag(Integer uid);

    @Update("update users set flag=#{flag} where uid=#{uid}")
    public void updateUserDeleteFlagByUid(Integer flag,Integer uid);
}
